package com.gopay.cashier.service.cloud;

import javax.servlet.http.HttpServletRequest;

import org.springframework.web.servlet.ModelAndView;

import com.gopay.cashier.common.exception.WebException;
import com.gopay.cashier.domain.bean.LoginUser;
import com.gopay.common.domain.cps.CpsGenMainOrder;

/**
 * 
 * ZhangZG
 * 2016年1月28日 
 * www.gopay.com.cn Inc.All rights reserved.
 */
public interface CloudLoginService {
	/**
	 * @param request
	 * @param order
	 * @param key
	 * @param mav
	 * @return  true:登录  false：失败
	 */
	public boolean login(HttpServletRequest request,CpsGenMainOrder order,String key,ModelAndView mav)throws WebException;

	public boolean checkLogin(LoginUser lu, CpsGenMainOrder order)throws WebException;
}
